﻿namespace Journeo_backend.Models.VOs
{
    public class Response<T> where T : class
    {
        public string Status { get; set; }
        public string Message { get; set; }
        public T Data { get; set; }

        public Response(string status, string message, T data)
        {
            Status = status;
            Message = message;
            Data = data;
        }

        public Response(string status, T data)
        {
            Status = status;
            Data = data;
        }

        public Response(string status, string message)
        {
            Status = status;
            Message = message;
        }

        public Response(T data)
        {
            Status = "success";
            Data = data;
        }
    }
}
